#include "server.hpp"
using std::cout;
using std::endl;
int main()
{
    Buffer buf;
    for(int i =0;i<300;i++)
    {
        std::string str = "hello!"+std::to_string(i)+'\n';
        buf.WriteStringAndPush(str);
    }
    while (buf.ReadAbleSize()>0)
    {
        /* code */
        std::string line = buf.GetLineAndPop();
        cout<<line<<endl;
    }
    
    return 0;
} 